package com.qyhl.webtv.commonlib.entity.circle;

import java.io.Serializable;
import java.util.List;

/**
 * Created by qyhl on 2018/1/17.
 * 圈子首页模型
 */

public class CircleHomeBean implements Serializable {
    public boolean isLocal = false;

    public boolean love;//是否点赞

    public boolean follow;//是否关注

    public String preview;//预览图

    public String topicDate;//发布时间

    public int loveCount;//赞点数

    public int type;//1 文本  2 图片  3 视频

    public String content;//内容

    public String videoThumb;//视频封面

    public String gmtCreate;

    public String videoHeight;
    public String videoWidth;

    public int siteId;

    public String position;//地理位置

    public int id;

    public int priority;//其他 置顶  1 不置顶

    public String video;//视频地址

    public int pageview;//浏览数

    public int postCount;//评论总数

    private List<PicList> picList;//图片集

    private List<PostList> postList;//评论集

    private User user;//发布用户

    private String username;//用户中心加载更多特殊字段

    private List<User> loverUser;//详情中，点赞过的人

    private List<TagList> tagList;

    public String getVideoHeight() {
        return videoHeight;
    }

    public void setVideoHeight(String videoHeight) {
        this.videoHeight = videoHeight;
    }

    public String getVideoWidth() {
        return videoWidth;
    }

    public void setVideoWidth(String videoWidth) {
        this.videoWidth = videoWidth;
    }

    public boolean isLocal() {
        return isLocal;
    }

    public void setLocal(boolean local) {
        isLocal = local;
    }

    public CircleHomeBean(boolean isLocal, boolean love, boolean follow, String preview, String topicDate, int loveCount, int type, String content, String videoThumb
            , String gmtCreate, int siteId, String position, int id, int priority, String video, int pageview, int postCount, List<PicList> picList, List<PostList> postList
            , User user, String username, List<User> loverUser, List<TagList> tagList) {
        this.isLocal = isLocal;
        this.love = love;
        this.follow = follow;
        this.preview = preview;
        this.topicDate = topicDate;
        this.loveCount = loveCount;
        this.type = type;
        this.content = content;
        this.videoThumb = videoThumb;
        this.gmtCreate = gmtCreate;
        this.siteId = siteId;
        this.position = position;
        this.id = id;
        this.priority = priority;
        this.video = video;
        this.pageview = pageview;
        this.postCount = postCount;
        this.picList = picList;
        this.postList = postList;
        this.user = user;
        this.username = username;
        this.loverUser = loverUser;
        this.tagList = tagList;
    }

    public CircleHomeBean(boolean isLocal) {
        this.isLocal = isLocal;
    }

    public boolean isFollow() {
        return follow;
    }

    public void setFollow(boolean follow) {
        this.follow = follow;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public List<User> getLoverUser() {
        return loverUser;
    }

    public void setLoverUser(List<User> loverUser) {
        this.loverUser = loverUser;
    }

    public String getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public int getPostCount() {
        return postCount;
    }

    public void setPostCount(int postCount) {
        this.postCount = postCount;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public String getVideoThumb() {
        return videoThumb;
    }

    public void setVideoThumb(String videoThumb) {
        this.videoThumb = videoThumb;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public boolean isLove() {
        return love;
    }

    public void setLove(boolean love) {
        this.love = love;
    }

    public String getPreview() {
        return preview;
    }

    public void setPreview(String preview) {
        this.preview = preview;
    }

    public String getTopicDate() {
        return topicDate;
    }

    public void setTopicDate(String topicDate) {
        this.topicDate = topicDate;
    }

    public int getLoveCount() {
        return loveCount;
    }

    public void setLoveCount(int loveCount) {
        this.loveCount = loveCount;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getSiteId() {
        return siteId;
    }

    public void setSiteId(int siteId) {
        this.siteId = siteId;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPageview() {
        return pageview;
    }

    public void setPageview(int pageview) {
        this.pageview = pageview;
    }

    public List<PicList> getPicList() {
        return picList;
    }

    public void setPicList(List<PicList> picList) {
        this.picList = picList;
    }

    public List<PostList> getPostList() {
        return postList;
    }

    public void setPostList(List<PostList> postList) {
        this.postList = postList;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<TagList> getTagList() {
        return tagList;
    }

    public void setTagList(List<TagList> tagList) {
        this.tagList = tagList;
    }

    //评论
    public static class PostList implements Serializable {

        public PostList(String gmtCreate, int id, int type, String content, User user, User reply) {
            this.gmtCreate = gmtCreate;
            this.id = id;
            this.type = type;
            this.content = content;
            this.user = user;
            this.reply = reply;
        }

        public String gmtCreate;//评论回复时间

        public int id;

        public int type;//1评论 2回复

        public String content;//评论内容

        public User user;//评论用户信息

        public User reply;//回复用户信息

        public String getGmtCreate() {
            return gmtCreate;
        }

        public void setGmtCreate(String gmtCreate) {
            this.gmtCreate = gmtCreate;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public User getUser() {
            return user;
        }

        public void setUser(User user) {
            this.user = user;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public User getReply() {
            return reply;
        }

        public void setReply(User reply) {
            this.reply = reply;
        }
    }

    //用户信息
    public static class User implements Serializable {
        public User(String nickName, String logo, String username, boolean follow) {
            this.nickName = nickName;
            this.logo = logo;
            this.username = username;
            this.follow = follow;
        }

        public boolean both;

        public String nickName;//昵称

        public String logo;//头像

        public String username;//用户名

        public boolean follow;

        public boolean isFollow() {
            return follow;
        }

        public void setFollow(boolean follow) {
            this.follow = follow;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public boolean isBoth() {
            return both;
        }

        public void setBoth(boolean both) {
            this.both = both;
        }
    }

    //图片
    public static class PicList implements Serializable {

        public PicList(String image, String thumb) {
            this.image = image;
            this.thumb = thumb;
        }

        public String image;//原图

        public String gmtModified;

        public String thumb;//缩略图

        public int width;//用于单张图片的宽

        public int height;//用于单张图片的高

        public String gmtCreate;

        public int id;//图片id

        public int tid;//话题id

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getGmtModified() {
            return gmtModified;
        }

        public void setGmtModified(String gmtModified) {
            this.gmtModified = gmtModified;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public int getWidth() {
            return width;
        }

        public void setWidth(int width) {
            this.width = width;
        }

        public int getHeight() {
            return height;
        }

        public void setHeight(int height) {
            this.height = height;
        }

        public String getGmtCreate() {
            return gmtCreate;
        }

        public void setGmtCreate(String gmtCreate) {
            this.gmtCreate = gmtCreate;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getTid() {
            return tid;
        }

        public void setTid(int tid) {
            this.tid = tid;
        }

    }


    //话题
    public static class TagList implements Serializable {

        public TagList(String name, int id) {
            this.name = name;
            this.id = id;
        }

        public String name;//话题名称

        public int id;//话题id

        public int top;//1 不置顶  2 置顶

        public int type;//1 站点标签  2 系统标签

        public String pic;//封面图

        public String desc;//描述

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public int getTop() {
            return top;
        }

        public void setTop(int top) {
            this.top = top;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
    }

    @Override
    public String toString() {
        return "CircleHomeBean{" +
                "isLocal=" + isLocal +
                ", love=" + love +
                ", follow=" + follow +
                ", preview='" + preview + '\'' +
                ", topicDate='" + topicDate + '\'' +
                ", loveCount=" + loveCount +
                ", type=" + type +
                ", content='" + content + '\'' +
                ", videoThumb='" + videoThumb + '\'' +
                ", gmtCreate='" + gmtCreate + '\'' +
                ", videoHeight='" + videoHeight + '\'' +
                ", videoWidth='" + videoWidth + '\'' +
                ", siteId=" + siteId +
                ", position='" + position + '\'' +
                ", id=" + id +
                ", priority=" + priority +
                ", video='" + video + '\'' +
                ", pageview=" + pageview +
                ", postCount=" + postCount +
                ", picList=" + picList +
                ", postList=" + postList +
                ", user=" + user +
                ", username='" + username + '\'' +
                ", loverUser=" + loverUser +
                ", tagList=" + tagList +
                '}';
    }
}
